<?php
/**
 * Created by PhpStorm.
 * User: 田家强
 * Date: 2017/4/6
 * Time: 10:16
 */

namespace Home\Controller;


use Think\Controller;

class OrderController extends BaseContoller
{
    public function  __construct()
    {
        parent::__construct ();
        if (!session ('uid')) {
            $this->error ('请登录！', u ('home/login/index'));
        }
    }
    public function index()
    {
        $headConf = ['title'=>'维依尚品_个人中心','js'=>['list']];
        $this->assign('headConf',$headConf);
        //$oid = I('get.oid');
        //dd($oid);
        //获取已购买的商品信息
        $data = m('order_list')->alias('ol')
            ->join('__GOODS__ gs on ol.gid=gs.gid')
            ->select();
        //dd($data);
        $this->assign('data',$data);

        $this->display();
    }


}